using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Models;

namespace BLL
{

    public static partial class MayorManager
    {
        public static bool AddMayor(Mayor mayor)
        {
            return MayorService.AddMayor(mayor);
        }

        public static int AddMayorReturnID(Mayor mayor)
        {
            return MayorService.AddMayorReturnID(mayor);
        }

        public static bool DeleteMayorByID(int iD)
        {
            return MayorService.DeleteMayorByID(iD);
        }

        public static bool ModifyMayor(Mayor mayor)
        {
            return MayorService.ModifyMayor(mayor);
        }

        public static bool ModifyMayorInfoCount(int id, int count)
        {
            return MayorService.ModifyMayorInfoCount(id, count);
        }

        public static IList<Mayor> GetAllMayors()
        {
            return MayorService.GetAllMayors();
        }

        public static IList<Mayor> GetMayorsByTop10()
        {
            return MayorService.GetMayorsByTop10();
        }

        public static IList<Mayor> GetMayorsByTitle(string title)
        {
            return MayorService.GetMayorsByTitle(title);
        }

        public static Mayor GetMayorByID(int iD)
        {
            return MayorService.GetMayorByID(iD);
        }

    }
}
